$(() => {
    $('#login_form').on('submit',(e) => {
        e.preventDefault()
       const data= $('#login_form').serialize()
        console.log(data);
       $.ajax({
        type:'POST',
        url:'http://localhost:8080/api/v1/admin/user/login',
        data,
        success:(res) => {
        console.log('成功',res);
        // if(res.code!=200){return alert(res.msg)}
        localStorage.setItem('dsj_token',res.token)
        location.href = 'index.html'
        },
    })
    })
   
})